﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MyVoteMVC.Web.Models.LogOnModel>" %>

<asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server">
    用户登录
</asp:Content>
<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
    <%--<script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
    <script src="<%: Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>"
        type="text/javascript"></script>--%>
    <% using (Html.BeginForm())
       { %>
    <%: Html.ValidationSummary(true, "登录失败，存在以下问题，请确认后重新登录") %>
    <div class="example">
        <h2 class="example-title">
            用户登录</h2>
        <fieldset class="configurator">
            <h3 class="legend">
                请输入用户名和密码进行登录。还没有账号？请<%=Html.ActionLink("注册","Register","Account") %></h3>
            <p>
            </p>
            <ul>
                <li></li>
                <li>
                    <%: Html.LabelFor(m => m.UserName) %> &nbsp; ：&nbsp; 
                    <%: Html.TextBoxFor(m => m.UserName, new { @class = "t-input", @style = "width:200px" })%>
                    <%: Html.ValidationMessageFor(m => m.UserName) %>
                </li></ul><ul>
                <li>
                    <%: Html.LabelFor(m => m.Password) %> &nbsp; ：&nbsp; 
                    <%: Html.PasswordFor(m => m.Password, new { @class = "t-input", @style = "width:198px" })%>
                    <%: Html.ValidationMessageFor(m => m.Password) %>
                </li>
            </ul>
            <p>
                <input type="submit" value="登录" class="t-button" />
            </p>
        </fieldset>
    </div>
    <% } %>
</asp:Content>
